package com.gdsdxy.bookshop.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@ApiModel("详细订单项目表")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("orderdetailitem")
public class OItem {
    @TableId(type= IdType.AUTO)
    @ApiModelProperty("详细订单编号")
    private Integer itemid;//每个实体类上方加id

    @ApiModelProperty("订单编号")
    private Integer orderid;

    @ApiModelProperty("书籍编号")
    private Integer bookid;

    @ApiModelProperty("书籍单价")
    private Integer price;

    @ApiModelProperty("地址编号")
    private Integer addressid;

    @ApiModelProperty("单个订单书籍数量")
    private Integer quantity;

    @ApiModelProperty("书籍总价")
    private Double totalprice=0D;

    @ApiModelProperty("订单状态")
    private Integer status;

}
